import request from "@/utils/request";

export function getLocalUefile() {
  return request({
    url: "/pixel/upload/getBigfiles",
    method: "get",
  });
}

export function uefileUpload(data) {
  return request({
    url: "/pixel/upload/bigFile",
    method: "post",
    headers: {
      "Content-Type": "multipart/form-data",
    },
    data,
  });
}

export function mergeUefile(data) {
  return request({
    url: "/pixel/upload/merge",
    method: "post",
    data,
  });
}

export function getMergeProgress(taskId) {
  return request({
    url: `/pixel/upload/getMergeProgress/${taskId}`,
    method: "get",
  });
}

export function checkUefileExistence(params) {
  return request({
    url: "/pixel/upload/checkExistence",
    method: "get",
    params,
  });
}
